import axios from "axios";
//定义常量保存统一的url
const baseUrl = "http://localhost:8080";

//home组件请求数据的对象

const homeRequest = {
    loadMenus(callBack){
        axios.get(baseUrl + "/menu/list")
            .then(res=>{
                callBack(res.data);
            })
    }
}
export default homeRequest;
